<!DOCTYPE html>
<html>
<head>
	<title>淘宝小赢家</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<script src="bootstrap/js/jquery.min.js"></script>
	<script src="bootstrap/js/bootstrap.js"></script>
<{include file='layouts/headNav.html'}>
<div class="container-fluid">
<div class="row-fluid">
	<div class="span2">
		<{include file='layouts/leftNav.html'}>
		<!--Sidebar content-->
	</div>
	<div class="span10">
		<!--Body content-->
		<ul class="nav nav-tabs">
			<li class="active"><a href="<{spUrl c=$_controller a=index}>">订单列表</a></li>
			<li><a href="<{spUrl c=$_controller a=create}>">新增订单</a></li>
			<li><a href="<{spUrl c=$_controller a=search}>">查询订单</a></li>
		</ul>
		<form method="post" action="<{spUrl c=$_controller a=update id=$tpl_data[$_pk]}>">
			<fieldset>
			<table>
				<tr>
				<{foreach from=$_attributes key=key item=attribute}>
				<td style="float:left;width: 100px;"><{$attribute}>:</td><td style="float:left;width: 400px;">
					<{if isset($_attributeFormset) && isset($_attributeFormset[$key])}>
					<{cbForm moreParams=$_attributeFormset[$key] name="`$_controller`[`$key`]" value=$tpl_data[$key]}>
					<{else}>
					<input name="<{$_controller}>[<{$key}>]" type="text" value="<{$tpl_data[$key]}>">
					<{/if}>
					</td>
				<{/foreach}>
				</tr>
			</table>
				<label></label>
				<button type="submit" class="btn btn-primary">更改</button>
				<!--<button type="reset" class="btn">清除重填</button>-->
			</fieldset>
		</form>
	</div>
</div>
</div>
</body>
</html>